<%- @page_title = _('Adding Notes to File %s', h(@upload.title)) -%>
<h2><%= @page_title %></h2>
<%- form_for( :upload, @upload,
              :url => upload_path(@project, @teaching, @group, @upload),
              :html => {:class => 'form-small',
                        :method => :put,
                        :onsubmit => "Field.disable('submit-form'); Element.hide('cancel-form');"}) do |f| -%>
  <div class="form"><!--O .form-->
    <label for="upload_notes"><%= _('Notes') %>:</label>
    <%= f.text_area(:notes) %>
    <%= error_message_on(:upload, :notes) %>
  </div><!--C .form-->
  <div class="form"><!--O .form-->
    <%= submit_tag(_('Save Notes'), :class => 'button', :id => 'submit-form') %>
    <%= link_to(_('&laquo; Back to file'), upload_path(@project, @teaching, @group, @upload), :id => 'cancel-form') %>
  </div><!--C .form-->
<%- end -%>